<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" import="service.ErrorService"
	import="dto.TeamInfoDTO"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	TeamInfoDTO tDTO = (TeamInfoDTO) session.getAttribute("team");
%>
<%
	String teamLeader = (String) session.getAttribute("teamLeader");
%>
<%
	ErrorService error = (ErrorService) request.getAttribute("error");
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>View Team</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.css" rel="stylesheet">
<style type="text/css"></style>
</head>

<body>
	<div class="container">
		<div class="header">
			<ul class="nav nav-pills pull-right">
				<%@include file="/WEB-INF/user/menu.jsp"%>
			</ul>
			<h2 class="text-muted">Tournament Hosting</h2>
			<hr>
		</div>
	</div>

	<div class="container" style="padding-bottom: 2px">

		<div class="list-group col-md-6 ">
			<%
				if (error != null)
					out.println(error.getError());
			%>
		</div>
	</div>

	<div class="container">
		<div class="col-md-6">
			<h1>Teaminfo</h1>
			<table class="table table-bordered">
				<thead>
					<th>Team Name</th>
					<th>Teamleader</th>
					<th>Sport</th>
				</thead>
				<tbody>
					<tr>
						<td>
							<%
								out.print(tDTO.getTeamName());
							%>
						</td>
						<td>
							<%
								out.print(teamLeader);
							%>
						</td>
						<td>
							<%
								out.print(tDTO.getSport());
							%>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
		<div class="col-md-6">
			<div class="list-group">
				<h1>Memberlist</h1>
				<ul>${memberList}</ul>
			</div>
		</div>
	</div>

</body>
</html>